import request from '@/utils/request'

// 查询挑战结果+详情记录列表
export function listChallengeResult(query) {
    return request({
        url: '/admin/challengeResult/list',
        method: 'get',
        params: query
    })
}

// 查询挑战结果+详情记录详细
export function getChallengeResult(id) {
    return request({
        url: '/admin/challengeResult/' + id,
        method: 'get'
    })
}

// 新增挑战结果+详情记录
export function addChallengeResult(data) {
    return request({
        url: '/admin/challengeResult',
        method: 'post',
        data: data
    })
}

// 修改挑战结果+详情记录
export function updateChallengeResult(data) {
    return request({
        url: '/admin/challengeResult',
        method: 'put',
        data: data
    })
}

// 删除挑战结果+详情记录
export function delChallengeResult(id) {
    return request({
        url: '/admin/challengeResult/' + id,
        method: 'delete'
    })
}
